<h1>New page</h1>

<%= error_messages_for :page %>

<% form_for(:page, :url => pages_path) do |f| %>
  <p>
    <b>Url</b><br />
    <%= f.text_field :url %>
  </p>

  <p>
    <b>Average rating</b><br />
    <%= f.text_field :average_rating %>
  </p>

  <p>
    <b>Total comments</b><br />
    <%= f.text_field :total_comments %>
  </p>

  <p>
    <b>Total ratings</b><br />
    <%= f.text_field :total_ratings %>
  </p>

  <p>
    <b>Created at</b><br />
    <%= f.datetime_select :created_at %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', pages_path %>